@if(!empty($list))

    <table class="table table-hover tm-table-small tm-product-table user-log-table">
        <tr>
            <td>操作</td>
            <td>域名</td>
            <td>订单号</td>
            <td>总计</td>
            <td>日期</td>

        </tr>
        @forelse($list as $k=>$v)
            <tr>
                <td>

                    @if(!in_array($v['status'],[0,3,4]))
                        <a href="{{ plugin_route('hostserver.user.buy.domain.show',['id'=>$v->id]) }}"
                           class="btn btn-warning btn-sm">查看</a>
                        <a href="{{ plugin_route('hostserver.user.buy.domain.renewal',['id'=>$v->id]) }}"
                           class="btn btn-primary btn-sm" style="border-width: 1px">续费</a>
                        @else
                        @if(isset($v['info']['domain']))
                            <a href="{{ plugin_route('hostserver.user.buy.domain.show',['id'=>$v->id]) }}"
                               class="btn btn-warning btn-sm" style="">查看</a>
                        @endif
                    @endif
                </td>
                <td>{{ $v['name'] }}</td>
                <td>{{  $v['order_sn'] }}</td>
                <td><span class="text-danger">{{  $v['total'] }}</span></td>
                <td>
                    @if(in_array($v['status'],[3,4]))
                        <span class="badge badge-info">等待审核</span>
                        @if(isset($v['info']['domain']))
                            <p class="mt-2">生效：{{  $v['buy_at'] }}</p>
                            <p>到期：<span class="text-danger">{{ $v['end_at'] }}</span></p>

                        @endif
                    @else
                        <p>生效：{{  $v['buy_at'] }}</p>
                        <p>到期：<span class="text-danger">{{ $v['end_at'] }}</span></p>
                    @endif
                </td>


            </tr>



        @empty
            <tr>
                <td colspan="6">
                    @include('plugin.hostserver.front.layout.no_item')
                </td>
            </tr>
        @endforelse
    </table>


@endif